import requests

# 注释
def getBdMsg(keyword):
	headers = {
		'User-Agent':'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.186 Safari/537.36'
	}
	res = requests.get('https://www.baidu.com/s?wd={}'.format(keyword),headers=headers)
	return res.text.replace('//www.baidu.com/img/baidu_jgylogo3.gif','static/images/2.png')

if __name__ == '__main__':
	print(getBdMsg('python'))
